package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {
    //根据动态id和类型，获取互动信息
    List<Comment> findComments(String movementId, Integer commentType, Integer page, Integer pageSize);

    //保存互动数据，返回互动总数
    Integer save(Comment comment);

    Integer saveVideo(Comment comment);

    //取消点赞
    Integer delete(Integer commentType, Long userId, String id);

    //返回评论总数量
    Long findCount(String id, Integer commentType);

    Integer deleteByvideo(Integer commentType, Long userId, String id);
}
